package ru.st.selenium;

import static org.junit.Assert.assertTrue;
import org.testng.annotations.*;
import static org.junit.Assert.*;
import java.util.regex.Pattern;
import java.util.concurrent.TimeUnit;
import org.testng.*;
import org.testng.annotations.*;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;
import org.openqa.selenium.By;

public class LogInOut extends ru.st.selenium.pages.TestBase {
//Lesson2_del ls = new Lesson2_del();
	//String login;
	//String pass;
//	public LogInOut(){
//	login = "";
//	pass = "";
//	
//}
	public void logIn(String login, String pass) {
		driver.findElement(By.id("username")).clear();
		driver.findElement(By.id("username")).sendKeys(login);
		driver.findElement(By.name("password")).clear();
		driver.findElement(By.name("password")).sendKeys(pass);
		driver.findElement(By.name("submit")).click();
	}

	
	

}
